<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr=[1,2,'fe',5];
        let arr1=[1,2];
        console.log(...arr);  //1,2,'fe',5
        // arr.push(arr1);
        arr.push(...arr1);
        console.log(arr); //1,2,'fe',5,1,2
        let arr2=[[1],[2],[3],[4]];
        console.log(...arr2); //[1],[2],[3],[4]

        function foo(a,...value){
            console.log(arguments);
            console.log(value);
        }
        foo(1,3,1,2); 
        // a 为普通参数
        // value 为剩余参数
    </script>
</body>
</html>